home *** CD-ROM | disk | FTP | other *** search
/ Commodore Free 30 / Commodore_Free_Issue_30_2009_Commodore_Computer_Club.d64 / 128 cpm 2 < prev    next >
Text File  |  2023-02-26  |  12KB  |  443 lines

  1. u
  2.  
  3.  
  4. An Introduction to C-128 CP/M
  5.  
  6. CPM1.TXT rev 1a 96-11-01
  7.  
  8.         CONTINUED FROM PART 1
  9.  
  10. Printer Support
  11. C-128 CP/M can support two printers,
  12. serial port devices 4 and 5. In its
  13. default configuration, device 4 (CP/M
  14. physical device PRT1) is assigned to
  15. the logical LIST device with a
  16. secondary address of 7 and ASCII to
  17. PET-ASCII translation enabled.  To
  18. change to a device 5 printer, use the
  19. DEVICE utility (see Chapter 3). To
  20. disable ASCII to PET-ASCII translation
  21. use the CONF utility.
  22.  
  23. The Keyboard
  24. The operation of the C-128 keyboard is
  25. slightly different in CP/M mode than
  26. it is in native mode.  For one thing,
  27. it uses the standard 7 bit ASCII
  28. character set rather than the
  29. PET-ASCII set used in native mode. In
  30. addition, each key is completely
  31. programmable as to its character
  32. codes or other special functions.
  33. Other differences in keyboard
  34. operation are outlined below.
  35.  
  36. Alpha Keys
  37. The alpha keys on the main keyboard
  38. (e.g. A, B, C, D, etc.) generate the
  39. standard lower case,  upper case, CAPS
  40. LOCK and control values.  The CAPS
  41. LOCK value defaults to the upper case
  42. value and is used as a software shift
  43. lock.  It is not related to either the
  44. SHIFT LOCK key or the CAPS LOCK key.
  45. To turn the CAPS LOCK mode on, press
  46. the Commodore logo C= key at the
  47. lower left of the main keyboard.
  48. Pressing the same key again, will turn
  49. off CAPS LOCK mode.
  50.  
  51. Numeric Keys
  52. The numeric keys (the row of keys
  53. above the alpha keys) produce the
  54. appropriate number as the unshifted
  55. value and the CAPS LOCK value, the
  56. symbol above the number on the key as
  57. the shifted value and the color on the
  58. side of the key (the top one of the
  59. 2 colors shown) as the control value.
  60. These colors are defined as 80 column
  61. foreground colors. The control value
  62. produced by the numbers on the numeric
  63. keypad are defined the same as those
  64. on the numeric keys, except that they
  65. generate 80 column background colors.
  66.  
  67. Arrow Keys
  68. The arrow keys are located in the
  69. cursor keypad above the top right
  70. portion of the main keyboard.  The
  71. functions & character codes assigned
  72. to these keys in CP/M mode are
  73. different to those assigned to the
  74. cursor control keys at the lower right
  75. of the main keyboard. The default
  76. values for the arrow  keys are those
  77. use used by most application
  78. programs which feature full screen
  79. cursor movement, such as text editors,
  80. etc.
  81.  
  82. The up arrow key generates the value
  83. 05 (<control>-e) as the unshifted,
  84. shifted and  CAPS LOCK  values; it
  85. generates the hexadecimal 12
  86. (<control>-r) as the control value.
  87.  
  88. The down arrow key generates the
  89. hexadecimal value 18 (<control>-x) as
  90. the unshifted,  shifted and CAPS LOCK
  91. values; it generates the value 03
  92. (<control>-c) as the control value.
  93.  
  94. The left arrow key generates the
  95. hexadecimal value 14 (<control>-s) as
  96. the unshifted,  shifted and CAPS LOCK
  97. values;  it executes the 40 column
  98. screen left function as the control
  99. value.
  100.  
  101. The right arrow  key generates the
  102. value 04 (<control>-d) as the
  103. unshifted,  shifted and CAPS LOCK
  104. values; it executes the 40 column
  105. screen right functions as the control
  106. value.
  107.  
  108. Additional ASCII Characters
  109. The  key labelled as a British pound
  110. sign generates the character '#' as 
  111. the unshifted, shifted and CAPS LOCK
  112. values.  The reverse apostrophe
  113. character is generated as the control
  114. value.
  115.  
  116. The  up arrow key next to the
  117. <RESTORE> key generates the caret
  118. character '^' as the shifted and
  119. control values. The pipe character is
  120. generated as the unshifted & CAPS
  121. LOCK values.
  122.  
  123. The '=' key generates the '=' as the
  124. unshifted, shifted & CAPS LOCK values.
  125. The tilde character is generated as
  126. the control value.
  127.  
  128. The '/' key  generates the '/' as the
  129. unshifted, shifted & CAPS LOCK values.
  130. The back slash character '\' is
  131. generated as the control value.
  132.  
  133. The key labelled 'INST DEL' generates
  134. hexadecimal value 7f (ASCII rubout)
  135. as the unshifted, shifted & CAPS
  136. LOCK values; the hexadecimal value 16
  137. (<control>-v) is generated as the
  138. control value.
  139.  
  140. Special Key Functions
  141. The key labelled NO SCROLL executes
  142. a PAUSE function. To resume execution,
  143. press NO SCROLL again (for AUG or DEC
  144. versions only) or RETURN (for MAY
  145. version).  The control value of the NO
  146. SCROLL key toggles between two modes
  147. (ON/OFF) of automatically tracking
  148. the CP/M screen on a 40 column monitor
  149.  
  150. The right & left arrows at the top
  151. of the keyboard initiate the special
  152. functions screen right & screen left
  153. respectively (40 column screen
  154. tracking) as their control values.
  155.  
  156. The key labelled <ENTER> generates a
  157. Carriage Return as the unshifted,
  158. shifted and CAPS LOCK values. The
  159. control value initiates the special
  160. function boot, which reboots the
  161. system as if the reset button has been
  162. pressed. If a CP/M boot disk is in
  163. drive A:, the CP/M system will be
  164. re-started, otherwise normal C-128
  165. native mode will be started.
  166.  
  167. The key labelled <RUN/STOP> is
  168. undefined as its unshifted, shifted &
  169. CAPS LOCK values, and toggles the
  170. display/nondisplay of the disk status
  171. window as its control value.
  172.  
  173. The  key  labelled  CRSR with up &
  174. down arrows (bottom right on main
  175. keyboard) generates  the hex value 17
  176. (<control>-w) which causes the latest
  177. CP/M command line to be re-typed on
  178. the screen. The key next to this (CRSR
  179. with right & left arrows) allows you
  180. to move right (<control>-f) and left
  181. (<control>-a) (unshifted and shifted,
  182. respectively) through a command line
  183. to edit it.
  184.  
  185. The key labelled F1/F2 generates the
  186. two character string 'F1' in the
  187. unshifted & CAPS LOCK modes and the
  188. string 'F2' in the shifted & control
  189. modes.
  190.  
  191. The key labelled F3/F4 generates the
  192. four character string 'dir <return>'
  193. in the unshifted and CAPS LOCK modes
  194. and the string 'dir' in the shifted &
  195. control modes.
  196.  
  197. The key labelled F5/F6 generates the
  198. two character string 'F5' in the
  199. unshifted & CAPS LOCK modes and the
  200. string 'F6' in the shifted & control
  201. modes.
  202.  
  203. The key labelled F7/F8 generates the
  204. two character string 'F7' in the
  205. unshifted and CAPS LOCK modes and a
  206. string representing the date that the
  207. system files were assembled in the
  208. shifted & control modes (i.e. the date
  209. which is displayed in the sign-on
  210. message).
  211.  
  212. The key labelled HELP generates the
  213. string 'Help' in all modes.
  214.  
  215. The Command Line
  216. CP/M commands and transient programs
  217. are accessed from the system prompt by
  218. typing in a sequence of characters
  219. called a command line.  A CP/M command
  220. line is composed of a command, an
  221. optional command tail, & a carriage
  222. return. The command is the name or
  223. filename of a program to be executed.
  224. The optional command tail can consist
  225. of a drive specification, one or more
  226. file specifications, & some options or
  227. parameters.
  228.  
  229. A>COMMAND +command tail! <cr>
  230.  
  231. Command Conventions
  232. The following special symbols define
  233. the syntax of a normal command line.
  234.  
  235. +!   surrounds an optional item.
  236. l    separates alternative items in a
  237.       command line.
  238. <cr> indicates a carriage return.
  239. ^    indicates the Control Key.
  240. n    substitute a number for n.
  241. s    substitute a string (group) of
  242.       characters for s.
  243. o    substitute an option or option
  244.       list for o.
  245. []   brackets enclose an option list.
  246. ()   enclose a range of options
  247.       within an option list.
  248. RW   Read-Write attribute -
  249.       opposite of RO
  250. RO   Read-Only attribute -
  251.       opposite of RW
  252. SYS  System attribute -
  253.       opposite of DIR
  254. DIR  Directory attribute -
  255.       opposite of SYS
  256. ...  preceding element can be repeated
  257.       as many times as desired.
  258. *    wildcard: replaces all or part of
  259.       a filename/filetype
  260. ?    wildcard: replaces any single
  261.       character in the same position
  262.       of a filename/filetype.
  263.  
  264. Command Line Editing
  265. The resident CP/M command interpreter
  266. (CCP) allows a certain degree of
  267. editing of the CP/M command line
  268. before pressing the <return> key. The
  269. editing keys are outlined below along
  270. with their usage.  It should be noted
  271. that these editing keys are totally
  272. independent from the control codes
  273. used by the terminal emulation for
  274. the video display.
  275.  
  276.  
  277. Control Character     Function
  278.  
  279. CTRL-A   moves cursor one character
  280.           to the left.
  281.  
  282. CTRL-B   moves cursor from beginning
  283.           to end of command line &
  284.           back without affecting
  285.           command.
  286.  
  287. CTRL-C   stops executing program when
  288.           entered at the system prompt
  289.           or after CTRL-S.
  290.  
  291. CTRL-E   forces a carriage return
  292.           without sending command.
  293.  
  294. CTRL-F   moves cursor one character
  295.           to the right.
  296.  
  297. CTRL-G   deletes character at current
  298.           cursor position if in the
  299.           middle of a line.
  300.  
  301. CTRL-H   delete character to the left
  302.           of cursor.
  303.  
  304. CTRL-I   same as TAB key.
  305.  
  306. CTRL-J   moves cursor to the left of
  307.           the command line & sends
  308.           command to CP/M. Line feed,
  309.           has same effect as carriage
  310.           return.
  311.  
  312. CTRL-K   deletes character at cursor
  313.           & all characters to the
  314.           right.
  315.  
  316. CTRL-M   same as carriage return.
  317.  
  318. CTRL-P   echoes console output to the
  319.           list device.
  320.  
  321. CTRL-CF: restarts screen scrolling
  322.           after a CTRL-S.
  323.  
  324. CTRL-R   retypes the characters to the
  325.           left of the cursor on a new
  326.           line; updates the command
  327.           line buffer.
  328.  
  329. CTRL-S   stops screen scrolling.
  330.  
  331. CTRL-U   updates command line buffer
  332.           to contain the characters to
  333.           the left of the cursor;
  334.           deletes current line.
  335.  
  336. CTRL-W   recalls previous command line
  337.           if current line is empty;
  338.           otherwise moves cursor to
  339.           end of line.
  340.  
  341. CTRL-J,-M,-R,-U and RETURN
  342.          update command line buffer
  343.           for recall with CTRL- W.
  344.  
  345. CTRL-X    deletes all characters to
  346.            the left of the cursor.
  347.  
  348.  
  349. Filespec
  350. CP/M identifies every file by its
  351. unique file specification,= which can
  352. consist of four parts:
  353.  
  354.    the drive specification,
  355.    the filename,
  356.    the filetype and
  357.    the password.
  358.  
  359. The term "filespec" indicates any
  360. valid combination of the four parts of
  361. a file specification, all separated by
  362. their appropriate delimiters. A colon
  363. must follow a drive letter. A period
  364. must precede a filetype. A semicolon
  365. must precede a password.
  366.  
  367. The general symbols and rules for the
  368. parts of a file specification follow:
  369.  
  370. d:        drivespec   optional
  371.            single alpha character
  372.            (A-P)
  373.  
  374. filename  filename
  375.            1-8 letters/numbers
  376.  
  377. typ       filetype    optional
  378.            0-3 letters and/or numbers
  379.  
  380. password  password    optional
  381.            0-8 letters/numbers
  382.  
  383. If you do not include a drive
  384. specifier, CP/M automatically uses the
  385. default drive. Valid combinations of
  386. the elements of a CP/M file
  387. specification are:
  388.  
  389.    filename
  390.    d:filename
  391.    filename.typ
  392.    d:filename.typ
  393.    filename;password
  394.    d:filename;password
  395.    filename.typ;password
  396.    d:filename.typ;password
  397.  
  398. Some CP/M commands accept wildcards
  399. (* and ?) characters in the filename
  400. and/or filetype parts of the command
  401. tail.  A wildcard in the command line
  402. can in one command reference many
  403. matching files on the default or
  404. specified user number & drive. This
  405. is sometimes referred to as an 'afn'
  406. or ambiguous filename. If no
  407. wildcards are present, an 'ufn' or
  408. unambiguous filename results.
  409.  
  410.  
  411. COMMODORE FREE
  412. I would like to thank Herne and 'Herne
  413. Data Systems Ltd.' For granting the
  414. reprint permission of this text
  415. From: Herne <herne@herne.com>
  416. Subject: Commodore Free magazine
  417. To: Commodore Free Magazine
  418.  
  419. You have our permission to run the
  420. text. Pls be sure to send us a copy
  421. for our records when it appears.
  422. regards,  Mike
  423.  
  424. Herne Data Systems Ltd.
  425. 31 Adelaide St E, PO Box 357
  426. Toronto, ON M5C 2J4
  427. CANADA
  428.  
  429. Voice/FAX 416-364-9955
  430. herne@herne.com
  431.  
  432. "Custom Software for DOS & Windows"
  433. visit our award winning website-
  434. http://www.herne.com
  435.  
  436. Other text about the CP/m & C-128 can
  437. be found on Hernes website zipped up
  438. text versions can be found here
  439. http://www.devili.iki.fi/Computers/
  440.  Commodore/C128/CPM-tech/
  441.  
  442. ----------------------
  443.